<!--
 * @Description: 二级栏目
 * @Author: charles
 * @Date: 2021-08-16 11:54:52
 * @LastEditors: charles
 * @LastEditTime: 2021-08-16 12:10:15
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>二级栏目</title>
  <style>
    html {
      font: 12px '微软雅黑';
    }
    body , ul {
      margin: 0;
      padding: 0;
    }
    ul {
      list-style: none;
    }
    .content {
      background-color: lightpink;
      height: 400px;
    }

    .header {
      position: relative;
    }
    .header ul.menu {
      background-color: lightseagreen;
      color: #fff;
      width: 1024px;
      margin: 0 auto ;
    }
    .header ul.menu::after {
      content: "";
      display: block;
      clear: both;
    }
    .header ul.menu >li.menu_item {
      float: left;
      line-height: 3em;
      text-align: center;
      width: 100px;
      cursor: pointer;
    }
    .header ul.menu >li.menu_item:hover > .sub_menu {
      display: block;
    }
    .header ul.menu .sub_menu {
      display: none;
      position: absolute;
      left: 0;
      height: 200px;
      width: 100%;
      background-color: #fff;
    }
  </style>
</head>
<body>
  <div class="header">
    <ul class="menu">
      <li class="menu_item">
        <span>首页</span>
        <div class="sub_menu">===</div>
      </li>
      <li class="menu_item">
        <span>居家生活</span>
        <div class="sub_menu">。。。</div>
      </li>
      <li class="menu_item">
        <span>服饰鞋包</span>
        <div class="sub_menu">。。。</div>
      </li>
      <li class="menu_item">
        <span>美食酒水</span>
        <div class="sub_menu"></div>
      </li>
      <li class="menu_item">
        <span>个护清洁</span>
        <div class="sub_menu"></div>
      </li>
    </ul>
  </div>
  <div class="content">

  </div>
</body>
</html>
